package com.neu.entity;
		/**
		 * 定义一个java类 LoginValidateInfo 该类用来封装信息提示:
		 *  如果状态值为0提示登录失败;
		 *  如果状态值为1提示登录成功;
		 */
public class LoginValidateInfo {
/**
 * 声明 int 类型的属性用来记录用户登录的状态值: 0||1
 */
	private int status;
	/**
	 * 声明String 类型的属性用来记录状态值对应的提示信息,如果1:登录成功    0:登录失败
	 */
	private String msg;
	public LoginValidateInfo() {
		super();
	}
	public LoginValidateInfo(int status, String msg) {
		super();
		this.status = status;
		this.msg = msg;
	}
	@Override
	public String toString() {
		return "LoginValidateInfo [status=" + status + ", msg=" + msg + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((msg == null) ? 0 : msg.hashCode());
		result = prime * result + status;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LoginValidateInfo other = (LoginValidateInfo) obj;
		if (msg == null) {
			if (other.msg != null)
				return false;
		} else if (!msg.equals(other.msg))
			return false;
		if (status != other.status)
			return false;
		return true;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
